package user;

import book.BookList;
import operation.IOperation;

import java.util.Scanner;

/**
 * 用户类
 */
public abstract class User {
    //获取用户输入
    protected Scanner scanner = new Scanner(System.in);
    //用户名
    protected String name;
    //
    protected IOperation[] operations;

    public abstract int menu();

    public void  doOperation(int choice, BookList bookList){
        operations[choice - 1].work(bookList);
    }
}
